package com.lzw.mall.admin.controller;

import com.lzw.mall.admin.util.RequestUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class LogOutController {

    @GetMapping("/logout")
    public String doOut(){
        RequestUtil.deleteCurrent();
        return "/login";
    }
    /*@PostMapping("/logout")
    public String doOutPost(){
        RequestUtil.deleteCurrent();
        return "/login";
    }*/
}
